package cn.com.yusys.yusp.mobile.web.rest;

import cn.com.yusys.yusp.commons.web.rest.dto.ResultDto;
import cn.com.yusys.yusp.mobile.service.OcrmFMkInterviewInfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;


/**
 * 网格拜访签到
 * @author zoie
 */
@RestController
@RequestMapping("/mobile/ocrmFMkInterviewInfo")
public class OcrmFMkInterviewInfoResource {

    @Resource
    private OcrmFMkInterviewInfoService ocrmFMkInterviewInfoService;

    /**
     * 网格拜访签到保存
     * @return
     */
    @PostMapping("/saveInterviewInfo")
    @ApiOperation(value = "网格拜访签到保存", notes = "网格拜访签到保存")
    public ResultDto<Integer> saveInterviewInfo(@RequestBody Map map) {
        return new ResultDto<>(ocrmFMkInterviewInfoService.saveInterviewInfo(map));
    }

}